<?
//******************************************************************************
//******************************************************************************
//***                                                                        ***
//***                                                                        ***
//***                                                                        ***
//******************************************************************************
//******************************************************************************
$tmppath="../../";
REQUIRE ($tmppath."include/login.php");
REQUIRE ($tmppath.$templates."up.php");
REQUIRE($tmppath."protect/connect.php");

require("../fonction.php");
TITRE_JEU("Ecrire au SDtimes");

function erreur($message,$path){
    echo"<table width=\"85%\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#000000\" background=\"".$path."FondS.jpg\"><tr><td><strong><div align=\"center\"><font color=\"#FF0000\">$message</font></div></strong></td></table><BR>";
}

IF (!empty($erreur)){
echo "<BR>" ;
erreur($erreur,"../../$templates");
}

?>
<form name="form1" method="post" action="messagerie_test.php">
<center><select name="sdchoix">
    <option value="1" selected>Article</option>
    <option value="2">Annonce</option>
    <option value="3">Lettre</option>
  </select> </center><BR>
  <div align="center"> 
    <input name="sujet" type="text" id="sujet" maxlength="25">
    <br>
    <br>
    <textarea name="message" cols="60" rows="10" id="message"></textarea>
    <br>
    <?
     echo"<input name=\"userperso\" type=\"hidden\" id=\"userperso\" value=\"$userperso\">";
    echo"<input name=\"$SID\" type=\"hidden\" id=\"$SID\" value=\"$SID\">";
    echo"<input name=\"mode\" type=\"hidden\" id=\"mode\" value=\"sdtimes\">";
    
    ?>
    <input type="submit" name="Submit" value="Envoyer">
  </div>
</form>
